# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-reader
pkgver=0.6.3
pkgrel=1
pkgdesc="A framework for building readers for GNU Guile"
url="http://www.nongnu.org/guile-reader/"
arch="all"
license="GPL-3.0-or-later"
depends="guile"
makedepends="gperf guile-dev gmp-dev"
# Don't split -dev: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12783
subpackages="$pkgname-doc"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="https://download.savannah.nongnu.org/releases/guile-reader/guile-reader-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0f9f47ee5f24ebb79894863ac96d63b0c7d2801020a212c59d11c7685ff4006a646be988a696a9b623dc0e0605f46d4a9a8680bfabd299878e41eab92e75efd5  guile-reader-0.6.3.tar.gz
"
